﻿using DapperExtensions.Mapper;

namespace ZilLion.Service.ZilLionOss.Domain.Entitys
{
    /// <summary>
    ///     用户密码
    /// </summary>
    public class OssUserPwdEntity
    {
        public string Username { get; set; }
        public string Userpwd { get; set; }
        public long Userid { get; set; }
    }

    public class OssUserPwdEntityMapper : ClassMapper<OssUserPwdEntity>
    {
        public OssUserPwdEntityMapper()
        {
            Table("oss_user_pwd");
            Map(f => f.Userid).Column("userid").Key(KeyType.Assigned);
            Map(f => f.Username).Column("username");
            Map(f => f.Userpwd).Column("userpwd");
        }
    }
}